package com.aaa.book_mall.controller;

import com.aaa.book_mall.dao.OutDetailDao;
import com.aaa.book_mall.util.LayTab;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Description: 出库详情表
 * @ClassName: OutDetailController
 * @Author: fengyun
 * @Date: 2021/1/21 15:41
 * @Version: 1.0
 */
@RestController
@RequestMapping("/detail")
public class OutDetailController {
    @Autowired
    private OutDetailDao outDetailDaoimpl;

    @RequestMapping("/showInfoBOUT")
    public LayTab showInfoBOUT(String outnumber){
        System.out.println(outnumber);
//        查询对应的详情表
        List<Map<String, Object>> maps = outDetailDaoimpl.showInfoBOUT(outnumber);
        System.out.println(maps);
        LayTab layTab = new LayTab(maps.size(), maps);
        return layTab;
    }
}
